<template>
  <div>
    <Demo v-if ="isShow"/>
    <button @click="isShow = !isShow">杀掉组件</button>
  </div>
</template>

<script>
import Demo from './components/Demo.vue';
export default {
  components: { 
    Demo },


  data() {
    return {
      isShow:true
    };
  },

};
</script>

<style >

</style>